const HtmlWebpackPlugin = require('html-webpack-plugin')
const CopyPlugin = require("copy-webpack-plugin");
module.exports = {
    // mode: "development",
    entry: './src/index.js',
    output: {
        filename: 'index.js'
    },
    plugins: [
        new HtmlWebpackPlugin({
            title: '无敌大孝子',
            filename: './src/index.html'
        }),
        new CopyPlugin([{
          from: "static", to: "dest" 
          }]),
    ]
}